<jsp:include page="header.jsp" />
<%@ page import="UnOfficeDeTourisme.Prestation" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Arrays" %>
<link rel="stylesheet" type="text/css" href="CSS/leCSS.css" >

	<h1 class="titrePage"><%=request.getAttribute("pageTitle") %></h1>
	
	<div>
	<h2>Liste des prestations existantes</h2>
    <table style="width: 100%;">
    <%
	    List<Prestation> listePrestations = (List<Prestation>) session.getAttribute("listeDesPrestations");
		if (listePrestations==null) {
			listePrestations = new ArrayList<Prestation>();
		}
		for (Prestation p : listePrestations) {
    %>
    <tr>
    <td style="width: 20%;" >
    <p><%=p.nomPrestation %>(id=<%=p.idPrestation %>)</p>
    <input class="btn_taille_egale" type="button" value="Choisir <%=p.nomPrestation %>" onclick="document.location='/OfficeTourisme/listerVisitesCreerCarte?idpresta=<%=p.idPrestation %>'"/>
    </td>
    </tr>
    <%
    	}
    %>
    
    </table>
    </div>
	<br><br>
		<input class="btn_taille_egale" type="button" value="Retour" onclick="document.location='/OfficeTourisme/cataloguePresta'">
		<br>
		<input class="btn_taille_egale" type="button" value="Quitter" onclick="document.location='/OfficeTourisme/deconnect'">   
	
	
<jsp:include page="footer.jsp" />